﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="~/Dentist/FeaturedDentist.aspx.cs" Inherits="Dentist_FeaturedDentist" MasterPageFile="~/MainMaster.master" %>

<%@ Register Assembly="Manager" Namespace="PagingControl" TagPrefix="cc1" %>
<%@ Register Src="~/includes/showRate.ascx" TagPrefix="showRate" TagName="Uc" %>
<%@ MasterType VirtualPath="~/MainMaster.master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainTable" runat="server">
    <div class="heading_inner">
        <div class="heading_topic">
            <h2>Featured Dentists</h2>
        </div>
    </div>

    <div class="cl"></div>
    <div style="width: 94%; padding: 3%">
        <div style="background-color: #f4f4f4; width: 94%; padding: 3%; text-align: justify; line-height: 20px">
            <table border="0" cellpadding="0" cellspacing="0" width="100%">

                <tr>

                    <td align="left">
                        <table cellpadding="0" cellspacing="0" border="0" width="100%">
                            <tr>
                                <td>
                                    <asp:Panel ID="trspec" runat="server">
                                        <tr>
                                            <td style="height: 30px;" align="left"><b>Select a specialty to view Featured Dentists :</b></td>
                                            <td style="height: 30px">&nbsp;</td>
                                        </tr>
                                        <tr id="trerror" visible="false" runat="server">
                                            <td align="left" style="height: 30px">
                                                <asp:Label runat="server" ID="lblerr" Visible="false"></asp:Label></td>
                                            <td></td>
                                        </tr>
                                        <tr>
                                            <td align="left" style="height: 30px; padding-left: 30px">
                                                <asp:BulletedList ID="specialtylist" runat="server" DisplayMode="HyperLink" CssClass="bullet_link">
                                                </asp:BulletedList>
                                            </td>
                                            <td></td>
                                        </tr>
                                        <tr>
                                            <td style="height: 10px; padding: 20px 0px 0px 30px">
                                                <a href="http://www.findadoc.com/Rss/FeaturedDoctor_rss.xml" id="lnkfDoc" style="text-decoration: none;">
                                                    <img style="border-style: none;" src="../Rss/rss.GIF" id="imgRss" alt="" />
                                                </a>&nbsp;<strong>Featured Dentists Feed</strong>
                                            </td>
                                            <td></td>
                                        </tr>
                                        <tr>
                                            <td style="height: 10px; padding: 20px 0px 0px 30px">
                                                <a href="http://www.findadoc.com/Rss/Blog-Featured-Doctors.xml" style="text-decoration: none;" id="lnkbfDoc">
                                                <img style="border-style: none;" src="../Rss/rss.GIF" id="imgBRss" alt="" />
                                                </a>&nbsp;<strong>Blog Feed</strong>
                                            </td>
                                            <td></td>
                                        </tr>
                                    </asp:Panel>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="height: 20px">
                        <asp:Literal ID="litPaging" runat="server" />
                    </td>
                </tr>


                <tr id="trresult" runat="server" visible="false">
                    <td colspan="2">To browse another Specialty. Please click <a href="<%=Session["strHttp"] %>Dentist/FeaturedDentist.aspx" id="lnkhere">here</a>
                        <br />
                        <br />
                        <asp:GridView
                            runat="Server"
                            DataKeyNames="rate"
                            ID="grdRateDentist"
                            AllowPaging="false"
                            AutoGenerateColumns="False"
                            Width="100%"
                            HeaderStyle-BackColor="DarkGray"
                            HeaderStyle-HorizontalAlign="Center"
                            PagerStyle-BackColor="DarkGray"
                            PagerStyle-ForeColor="white"
                            PagerStyle-HorizontalAlign="Center"
                            GridLines="None"
                            OnRowDataBound="grdRateDentist_RowDataBound" CellPadding="4" EnableModelValidation="True" ForeColor="#333333">
                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <table>
                                            <tr>
                                                <td width="90">
                                                    <%--<img src='<%=Session["strHttp"]%><%# "imagehandler.ashx?type=t&id=" + Eval("Id") + "&gender=" + Eval("gender")%>' />--%>
                                                    <%#getPhoto(Eval("photo"),Eval("gender")) %>
															   
                                                </td>
                                                <td nowrap>
                                                    <!-- Comented for implement new URL Formate at 16/07/08 by Ranjeet 
																   <a class="link-result" href='<%=Session["strHttp"]%>Dentist/DentistsDetails.aspx?id=<%# Eval("Id") %><%#obj.FormatURL(Eval("specialityName"),Eval("subSpec"),Eval("state"),Eval("city"),Eval("zipcode"), true) %>' title="Show Details"><b><u><%# Eval("Name")%></u></b></a><br />-->
                                                    <a class="link-result" href='<%=Session["strHttp"]%>Dentists/<%#obj.URLFormat(Eval("specialityName"),Eval("state"),Eval("city"), true)%>/<%# Eval("Id") %>-<%# Eval("Name") %>.aspx' title="Show Details"><b><u><%# Eval("Name")%></u></b></a><br />
                                                    <a class="link-result" href='<%# Eval("website") %>' target="_blank"><b><u><%# Eval("website")%></u></b></a><br />
                                                    <img src="<%=Session["strHttp"]%>images/email_icon.gif" />&nbsp;&nbsp;<a class="link-result" href='<%=Session["strHttp"]%>Dentist/EmailToDentist.aspx?Id=<%# Eval("Id") %>'><b><u>Email Dr. <%# Eval("Name")%></u></b></a>
                                                </td>
                                            </tr>
                                        </table>
                                    </ItemTemplate>
                                    <ItemStyle Width="25%" />
                                </asp:TemplateField>

                                <asp:BoundField ItemStyle-HorizontalAlign="Center" HeaderText="Location" DataField="Location">
                                    <ItemStyle Width="30%" />
                                </asp:BoundField>
                                <asp:BoundField HeaderText="Specialty/Subspecialty" ItemStyle-HorizontalAlign="Center" DataField="Speciality">
                                    <ItemStyle Width="35%" />
                                </asp:BoundField>
                                <asp:BoundField HeaderText="Rating" ItemStyle-HorizontalAlign="Center" DataField="Rate" ItemStyle-Font-Bold="true">
                                    <ItemStyle Width="35%" HorizontalAlign="Center" ForeColor="#FF6C00" />
                                </asp:BoundField>
                                <asp:TemplateField>
                                    <HeaderStyle HorizontalAlign="Left" />
                                    <ItemStyle VerticalAlign="Top" />
                                    <ItemTemplate>
                                        </td></tr><tr>
                                        </tr>
                                        <td colspan="6" style="background-color: White"></td>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <EditRowStyle BackColor="#999999" />
                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#5D7B9D" HorizontalAlign="Center" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        </asp:GridView>
                    </td>
                </tr>
                <!-- custom paging Changes on (07/07/07) Amit Deshwal -->


                <%--<tr>
                    <td align="right">
                        <cc1:Paging ID="cntPaging" runat="server" ResultsLocation="Bottom"
                            StoredProcedureName="get_featuredDentists"
                            OrderBy="fname" Control_Type="GridView" BindToControl="grdRateDentist" PagerCount="10" PageSize="10" ShowFirst="False" ShowLast="False"></cc1:Paging>

                    </td>
                </tr>--%>
                <tr>
                    <td colspan="2" align="center"></td>
                </tr>

                <tr>
                    <td colspan="2" align="left">
                        <br />
                        <asp:Label runat="server" ID="lblDateCon"></asp:Label></td>
                         <asp:Label runat="server" ID="Normal"></asp:Label>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="InnerRight">
</asp:Content>
